package com.hospital.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hospital.domain.pojo.DrugPurchase;
import com.hospital.domain.pojo.DrugPurchaseItem;
import com.hospital.domain.utils.Result;

import java.util.List;
import java.util.Map;

public interface DrugPurchaseService extends IService<DrugPurchase> {
    Result<Integer> createPurchase(Integer pId, List<Map<String, Object>> items);
    Result<List<Map<String, Object>>> listPatientPurchases(Integer pId);
    Result<List<Map<String, Object>>> listPendingPurchases();
    Result<Void> approve(Integer purchaseId, Integer approverId, Integer approverRole, String remark, boolean pass);
}

